import yRequest from "../request"

/**
 * @description: 查询工种类型
 */
export function queryJobKind(data = {}, config = {}) {
  return yRequest.post("queryPositionType", "/job/kind/tree", data, config)
}

/**
 * @description: 查询零工岗位列表
 */
export function queryPositionList(data = {}, config = {}) {
  return yRequest.post("queryPositionList", "/apply/position/list", data, config)
}
/**
 * @description: 查询零工岗位列表(智能推荐)
 */
export function queryPositionListIntelli(data = {}, config = {}) {
  return yRequest.post("queryPositionListIntelli", "/apply/position/intelligent/list", data, config)
}
/**
 * @description: 查询全职岗位列表
 */
export function queryQzPositionList(data = {}, config = {}) {
  return yRequest.post("queryQzPositionList", "/qz/position/list", data, config)
}

/**
 * @description: 收藏岗位
 */
export function collectPosition(data = {}, config = {}) {
  return yRequest.post("collectPosition", "/position/collect/operate", data, config)
}

/**
 * 接单
 * @param data
 * @param config
 * @returns {*}
 */
export function applyPosition(data = {}, config = {}) {
  return yRequest.post("applyPosition", "/apply/position/apply", data, config)
}
///apply/position/odd/position
/**
 * 查询岗位详情
 * @param data
 * @param config
 * @returns {*}
 */
export function queryPositionDetail(data = {}, config = {}) {
  return yRequest.post("queryPositionDetail", "/apply/position/odd/position", data, config)
}

/**
 * 查询全职岗位详情
 * @param data
 * @param config
 * @returns {*}
 */
export function queryQzPositionDetail(data = {}, config = {}) {
  return yRequest.post("queryQzPositionDetail", "/qz/position/info", data, config)
}

/**
 * 查询简历列表
 * @param data
 * @param config
 * @returns {*}
 */
export function queryResumeList(data = {}, config = {}) {
  return yRequest.post("queryResumeList", "/resume/list", data, config)
}

/**
 * @description: 全职投递简历
 */
export function qzApplyPosition(data = {}, config = {}) {
  return yRequest.post("qzApplyPosition", "/qz/apply/position/submit/resume", data, config)
}
